package com.team.RunsFast_Api.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.team.RunsFast_Api.dto.OrderAddressDto;
import com.team.RunsFast_Api.dto.OrderFoodDto;
import com.team.runsfast.entity.Order;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderDao extends BaseMapper<Order> {

    @Update("update t_order set flag=#{status} where no=#{no}")
    Integer updateState(Integer status,String no);


    List<OrderFoodDto> listOrderFood(Long oid);


    OrderAddressDto listAddressDto(Long uid,Long oid);


}
